Connectivity & lifecycle topic
How the client learns that the app is back in front and that the network is back. QueryClientProvider maps the app lifecycle onto the client's focus state by default. Connectivity is opt-in: pass an OnlineStatus — fixed, or a stream of changes from the package of your choice — and queries and mutations with the default network mode pause while the client believes it is offline.
Classes
- OnlineStatus Connectivity & lifecycle
-
What the client should believe about the network, and where later changes
come from. Passed as
QueryClientProvider.onlineStatus. - OnlineStatusFixed Connectivity & lifecycle
- The OnlineStatus.fixed variant: one value, no stream.
- OnlineStatusStream Connectivity & lifecycle
- The OnlineStatus.stream variant: a starting assumption and a stream of changes.